<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    @ok="handleOk"
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel"
    :cancelButtonProps="{ class:{'jee-hidden': disableSubmit} }">
    <map-choose ref="mapChoose"></map-choose>
  </j-modal>
</template>

<script>

  import mapChoose from './mapChoose'
  export default {
    name: 'mapModal',
    components: {
      mapChoose
    },
    data () {
      return {
        title:'选择地址',
        width:800,
        visible: false,
        disableSubmit: true
      }
    },
    methods: {
      open(){
        this.visible = true;
      },
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleOk () {
      },
      submitCallback(){
        this.$emit('ok');
        this.visible = false;
      },
      handleCancel () {
        this.close()
      }
    }
  }
</script>